/* ========== GLOBAL RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* ========== BODY & BACKGROUND ========== */
body {
  color: #034b63;
  background-color: #e6fcf7;
  line-height: 1.6;
}

/* Index Page Background */
.logo-img {
  width: 50px;
  height: auto;
  border-radius: 30%;
  padding: auto;
}

.home-hero {
  min-height: 100vh;

  background-image:
    linear-gradient(to right, rgba(3, 168, 168, 0.9), rgba(250, 251, 252, 0.6)),
    url("../uploads/images/pipo.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 80px;
  color: white;
}

.home-hero h1 {

font-size: clamp(3rem, 4vw, 4rem);
margin-bottom: 10px;

background: linear-gradient(to right, white, black);

-webkit-background-clip: text;
background-clip: text;

-webkit-text-fill-color: transparent;
color: transparent;

}

.home-hero p {
  font-size: 2.2rem;
  max-width: 500px;
  color:#ffffff ;
}

/* ========== NAVBAR ========== */
.navbar {
  width: 100%;
  background: rgba(3, 75, 99, 0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 60px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar h2 {
  color: #d0f0ff;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #1abc9c;
}

/*========= PROJECTS SECTION ==========*/
.projects {
  position: relative;
  padding: 80px 60px;
  text-align: center;
  overflow: hidden;
  z-index: 1;
}

/* SMOOTH FADE BACKGROUND SLIDESHOW */
.projects::before,
.projects::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  animation: fadeSlide 16s infinite;
}

/* FIRST IMAGE */
.projects::before {
  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.35),
      rgba(6, 189, 149, 0.65)
    ),
    url("../uploads/images/pwater.jpg");
}

/* SECOND LAYER */
.projects::after {
  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.35),
      rgba(6, 189, 149, 0.65)
    ),
    url("../uploads/images/pmetal.jpg");

  animation-delay: 8s;
}

/* FADE EFFECT */
@keyframes fadeSlide {
  0% {
    opacity: 0;
    transform: scale(1);
  }

  10% {
    opacity: 1;
  }

  45% {
    opacity: 1;
    transform: scale(1.08);
  }

  55% {
    opacity: 0;
  }

  100% {
    opacity: 0;
    transform: scale(1);
  }
}

/* OPTIONAL DARK OVERLAY FOR BETTER TEXT VISIBILITY */
.projects .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
  z-index: -1;
}

/*========= HEADINGS ==========*/
.projects h2 {
  margin-bottom: 40px;
  color: #034b63;
  font-size: 2em;
}

.pro_h2{
  color: #034b63;
  font-size: 30px;
  font-weight: bold;
  font-family: Arial Black, sans-serif;
}

/*========= PROJECT CARDS GRID ==========*/
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  padding: 20px 0;
}

/*========= EACH CARD ==========*/
.project-card {
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);

  border-radius: 15px;
  overflow: hidden;
  padding: 18px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  border: 2px solid #1abc9c;

  box-shadow: 0 4px 15px rgba(0,0,0,0.1);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/*========= HOVER EFFECT ==========*/
.project-card:hover {
  transform: translateY(-8px) scale(1.02);

  box-shadow:
    0 8px 25px rgba(0,0,0,0.2);
}

/*========= CARD TITLE ==========*/
.project-card h3 {
  margin-bottom: 12px;
  font-size: 1.4rem;
  font-weight: 600;
  color: #034b63;
}

/*========= PARAGRAPH ==========*/
.project-card p {
  margin: 12px 0;
  flex-grow: 1;
  color: #333;
}

/*========= READ MORE BUTTON ==========*/
.project-card a {
  margin-top: 10px;
  padding: 10px 16px;

  background: #1abc9c;
  color: #ffffff;

  text-decoration: none;
  border-radius: 8px;

  font-weight: 600;
  text-align: center;

  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.project-card a:hover {
  background: #05668d;
  transform: scale(1.05);
}

/*========= BUTTONS ==========*/
.project-card button {
  background: green;
  color: white;
  border: none;
  padding: 8px;
  cursor: pointer;
  border-radius: 6px;

  transition: background 0.3s ease;
}

.project-card button:hover {
  background: darkgreen;
}

/*========= ABOUT CARDS ==========*/
.about-card {
  background: rgba(255,255,255,0.95);

  border-radius: 40px;
  overflow: hidden;
  padding: 18px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  border: 3px solid #1abc9c;

  box-shadow: 0 4px 15px rgba(0,0,0,0.1);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);

  box-shadow:
    0 8px 25px rgba(0,0,0,0.15);
}

.about-card ul li {
  color: #034b63;
  text-align: left;
  font-weight: bold;
}

.about-card ul li strong {
  color: #034b63;
}

/*========= ABOUT TITLE ==========*/
.about-card h3 {
  margin-bottom: 8px;
  font-size: 1.4rem;
  font-weight: 600;
  color: #034b63;
}

/*========= ABOUT PARAGRAPH ==========*/
.about-card p {
  margin: 12px 0;
  flex-grow: 1;
}

/*========= VIDEO WRAPPER ==========*/
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;

  overflow: hidden;
  border-radius: 12px;

  margin-bottom: 12px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  border: none;
}

/*========= IMAGE WRAPPER ==========*/
.image-wrapper {
  width: 100%;
  height: 0;

  padding-bottom: 56.25%;

  position: relative;

  border-radius: 12px;
  overflow: hidden;

  margin-bottom: 12px;
}

.image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.5s ease;
}

/* IMAGE HOVER ZOOM */
.image-wrapper:hover img {
  transform: scale(1.08);
}
/* ========== ABOUT SECTION ========== */
.about {
  padding: 80px 60px;
  background: linear-gradient(to right, #e6fcf7, #d0f0ff);
  text-align: center;
}

.about h2 {
  font-size: 2em;
  color: #034b63;
  margin-bottom: 20px;
}

.about p {
  max-width: 700px;
  margin: 0 auto;
  color: #05668d;
  font-size: 1.1em;
}

/* ========== CONTACT ========== */
.contact {
  padding: 5vw 5%;
  background: linear-gradient(to right, #d0f0ff, #e6fcf7);
  color: #034b63;
  text-align: center;
}

.contact h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 0.5em;
}

.contact p {
  margin-bottom: 2.5em;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: #05668d;
}

/* FORM & CONTACT INFO */
.contact-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4vw;
  flex-wrap: wrap;
  border: 5px solid #1abc9c;
  border-color: linear-gradient(to left, #1394cf, #262b27);
  border-width: 5cm;
}


/* CONTACT INFO TEXT */
.contact-info {
  max-width: 420px;
  text-align: left;
  margin-top: 20px;
  margin-bottom: 20px;
}

.contact-info h3 {
  margin-bottom: 10px;
  color: #034b63;
}

.contact-info a {
  color: #1abc9c;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.social-links {
  margin-top: 15px;
}

.social-links a {
  display: block;
  margin-right: 10px;
  flex-wrap: row;
  color: #034b63;
  font-weight: 600;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #1abc9c;
}
.c_logo{
  width: 30px;
  height: 30px;

}

/* ========== FOOTER ========== */
footer {
  background: #034b63;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .home-hero {
    padding: 50px 30px;
    align-items: center;
    text-align: center;
  }

  .contact-container {
    flex-direction: column;
    align-items: center;
  }

  .contact-form,
  .contact-info {
    width: 95%;
    text-align: center;
  }
}
/* CAROUSEL WRAPPER */
.carousel {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 90px;
  margin-top: 40px;
  perspective: 1000px;
  overflow: hidden;
}

/* INDIVIDUAL CARDS */
.carousel-card {
  background: white;
  width: 260px;
  text-align: center;
  padding: 18px;
  border-radius: 15px;
  transition: transform 0.6s ease, opacity 0.6s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  opacity: 0.5;
}

.carousel-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}

/* CENTER CARD = BIGGER */
.carousel-card.active {
  transform: scale(1.25) translateZ(60px);
  opacity: 1;
}

/* LEFT & RIGHT CARDS = SMALLER */
.carousel-card.left {
  transform: translateX(-120px) scale(0.9);
}

.carousel-card.right {
  transform: translateX(120px) scale(0.9);
}
/*admin*/
.dashboard{

padding:1px;
background:#5b89c5;


}

.dashboard h1{

margin-bottom:20px;
color:#038383;
display: flex;

}

.dashboard-form{

flex-direction:column;
gap:20px;
margin-top:20px;
margin-bottom: 20px;
}

.dashboard hr{
border:1px solid #020503;
size: 3px;
}
.ad-projects{
 border-radius:200px;
 border-color:#037927;  
 border-width: 5px;
 border-style: solid;
 font-family: monospace;
background-color: #ccc;
padding: 10px;
margin-top:20px;
margin-bottom: 20px;

 
}

.dashboard h3{

margin-top:20px;
color:#037927;
font-weight: arial black;
  margin-left: 30px;
  font-size: 24px;

}
.projects-list{
  font-family: monospace;
  color: #034b63;
  margin-left: 30px;

}

.messages-container{

display:flex;
flex-direction:column;
gap:20px;

}


.message-card{

background:white;
padding:20px;
border-radius:8px;
box-shadow:0 2px 6px rgba(0,0,0,0.1);

display:flex;
justify-content:space-between;
gap:20px;

}


.message-info{

width:45%;

}

.message-info h3{

color:#002147;

}

.msg{

margin:10px 0;

}


.reply-box{

width:50%;
display:flex;
flex-direction:column;
gap:10px;

}


.reply-box textarea{

height:100px;
padding:10px;
border:1px solid #ccc;
border-radius:5px;

}


.reply-box input{

padding:5px;

}


.reply-btn{

background:#002147;
color:white;
padding:10px;
border:none;
border-radius:5px;
cursor:pointer;

}


.reply-btn:hover{

background:#FFD700;
color:black;

}

/*messages*/
.msg{
border:1px solid #ddd;
padding:15px;
margin:10px;
background:white;
}

.msg textarea{
width:100%;
margin-top:10px;
}

/*login form*/
form {
  background: white;
  padding: 20px;
  max-width: 400px;
  margin: auto;
  border-radius: 10px;
}

input, select, textarea {
  width: 100%;
  margin: 10px 0;
  padding: 10px;
}

button {
  background: green;
  color: white;
  padding: 10px;
  border: none;
  cursor: pointer;
}

h2 {
  text-align: center;
}

/* CATEGORY MANAGER */
.category-manager {
  margin-top: 20px;
  padding: 20px;
  background: #e6fcf7;
  border-radius: 10px;
  border: 2px solid #1abc9c;
  margin-bottom: 20px;
  max-width: 600px;
}

.category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;

  background: white;

  padding: 12px;
  margin-bottom: 12px;

  border-radius: 10px;

  border: 2px solid #1abc9c;
}

.cat-form {
  display: flex;
  gap: 10px;
  width: 80%;
}

.cat-form input {
  flex: 1;
}

.edit-btn {
  background: #05668d;
}

.delete-btn {
  background: red;
  color: white;

  padding: 10px 15px;

  text-decoration: none;

  border-radius: 6px;
}

/* PROJECT DETAILS PAGE */
.project-details {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;

  background: white;

  border-radius: 15px;

  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.project-details h1 {
  color: #034b63;
  margin-bottom: 10px;
}

.project-category {
  color: #05668d;
  margin-bottom: 20px;
}

.project-gallery {
  display: grid;

  grid-template-columns:
  repeat(auto-fit, minmax(250px, 1fr));

  gap: 20px;

  margin-bottom: 30px;
}

.project-gallery img,
.project-gallery video {
  width: 100%;
  border-radius: 12px;
}

.project-description {
  margin-top: 20px;
}

.project-description h3 {
  color: #034b63;
  margin-bottom: 10px;
}

.project-description p {
  line-height: 1.8;
  color: #333;
}

.project-actions {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

.project-actions a {
  background: #1abc9c;
  color: white;

  padding: 10px 15px;

  border-radius: 8px;

  text-decoration: none;
}

.project-actions a:hover {
  background: #05668d;
}

.back-link {
  text-align: center;
  font-family: Arial, sans-serif;
  font-weight: bold;
}